<?php
namespace Common\Model;
use Think\Model;
class BaseModel extends Model{
    protected $staff_id = '';//$_SESSION['staff_id']
    public  $role_id  = 0;
    const ROLE_TEACHER     = 4;//普通教职工
    const ROLE_TEACHER_MGR = 3;//学院领导
    const ROLE_BAOWEICHU   = 1;//保卫处管理员
    public function __construct(){
        parent::__construct();
        $this->staff_id  = !empty($_SESSION['USER']['staff_id']) ? $_SESSION['USER']['staff_id']:"2012014379";
        $this->role_id  = !empty($_SESSION['USER']['role_id']) ? $_SESSION['USER']['role_id']:3;
    }


}